<html>
<head><meta charset="utf-8"><title>use cargo with local rustc from source · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/use.20cargo.20with.20local.20rustc.20from.20source.html">use cargo with local rustc from source</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="198141158"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/use%20cargo%20with%20local%20rustc%20from%20source/near/198141158" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amit Levy <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/use.20cargo.20with.20local.20rustc.20from.20source.html#198141158">(May 19 2020 at 23:47)</a>:</h4>
<p>Is there a simple way to use a local <code>rustc</code> compiled from (modified) source locally with cargo (installed with Rustup)?</p>



<a name="198143565"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/use%20cargo%20with%20local%20rustc%20from%20source/near/198143565" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/use.20cargo.20with.20local.20rustc.20from.20source.html#198143565">(May 20 2020 at 00:36)</a>:</h4>
<p>yes: <code>rustup toolchain link</code></p>



<a name="198143567"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/use%20cargo%20with%20local%20rustc%20from%20source/near/198143567" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chris Simpkins <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/use.20cargo.20with.20local.20rustc.20from.20source.html#198143567">(May 20 2020 at 00:36)</a>:</h4>
<p>Hi Amit!  Check out this section of the rustc-dev-guide on creating a toolchain with your local build.  <a href="https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html#creating-a-rustup-toolchain">https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html#creating-a-rustup-toolchain</a></p>
<p>Then you should be able to run it with e.g., <code>cargo +stage1 build</code></p>



<a name="198143594"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/use%20cargo%20with%20local%20rustc%20from%20source/near/198143594" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/use.20cargo.20with.20local.20rustc.20from.20source.html#198143594">(May 20 2020 at 00:37)</a>:</h4>
<p>50 minutes later, at almost the same second...</p>



<a name="199703248"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/use%20cargo%20with%20local%20rustc%20from%20source/near/199703248" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Natalie Popescu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/use.20cargo.20with.20local.20rustc.20from.20source.html#199703248">(Jun 04 2020 at 04:07)</a>:</h4>
<p>nevermind, duplicate link!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>